package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-whw-fy-entity-ParentComm")
@Data
public class ParentComm {
    /**
     * 家长沟通记录id
     */
    @ApiModelProperty(value = "家长沟通记录id")
    private Integer pCommId;

    /**
     * 学生id
     */
    @ApiModelProperty(value = "学生id")
    private Integer pStuid;

    /**
     * 家长id
     */
    @ApiModelProperty(value = "家长id")
    private Integer pParentid;

    /**
     * 儿童关系
     */
    @ApiModelProperty(value = "儿童关系")
    private String pParentRelation;

    /**
     * 教学主管id
     */
    @ApiModelProperty(value = "教学主管id")
    private Integer pStaffidDirector;

    /**
     * 主责老师
     */
    @ApiModelProperty(value = "主责老师")
    private Integer pStaffid;

    /**
     * 沟通内容
     */
    @ApiModelProperty(value = "沟通内容")
    private String pCommInfo;

    /**
     * 家长问题及建议
     */
    @ApiModelProperty(value = "家长问题及建议")
    private String pParentInfo;

    /**
     * 处理建议
     */
    @ApiModelProperty(value = "处理建议")
    private String pInfo;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date pCreattime;

    /**
     * 会议地点id
     */
    @ApiModelProperty(value = "会议地点id")
    private Integer pMeetingplaceId;

    /**
     * 主管医生id
     */
    @ApiModelProperty(value = "主管医生id")
    private Integer pAttendingdoctorId;

    /**
     * 事件描述
     */
    @ApiModelProperty(value = "事件描述")
    private String pIssue;
    /**
     * 家长沟通记录时间
     */
    @Transient
    @ApiModelProperty(value = "家长沟通记录时间(传这个)")
    private String pCreattimeToString;
}